package com.gis.util;

public enum ResultCode {
	SUCCESS(0, "success"), 
	FAIL(1, "Request is failed"), 
	PAGE_NOT_FOUND(404, "Page not found"),
	TOKEN_INVALID(40001, "Token is null or invalid"),
	ACCESS_DENIED(40003, "Access denied"), 
	FAIL_DELETE(50001, "Delete failed"), 
	FAIL_UPDATE(50002, "Update failed");

	private Integer code;
	private String message;

	ResultCode(Integer code, String message) {
		this.code = code;
		this.message = message;
	}

	public Integer code() {
		return this.code;
	}

	public String message() {
		return this.message;
	}

}
